

#include <stdio.h>
int main(){
    int a, b;   
    int sum = 0;    
    int count = 0;   
    scanf("%d %d", &a, &b);
    if(a >= -100 && a <= b && b <= 100){   
        for(int i = a; i <= b; i++){    
            count += 1;    
            printf("%5d", i);    
            sum += i;    
            if(count % 5 == 0 || i == b){   
                printf("\n");
            }
        }
        printf("Sum = %d\n", sum);  
    }
    return 0;
}


